﻿using AutoMapper;
using Literary.Core.Model.Business.Material;
using Literary.Core.Service.Business.Material.ArticleCategory.Input;
using Literary.Core.Service.Business.Material.ArticleCategory.Output;

namespace Literary.Core.Service.Business.Material.ArticleCategory
{
    /// <summary>
    /// 映射配置
    /// </summary>
    public class MapConfig : Profile
    {
        public MapConfig()
        {
            //新增
            CreateMap<ArticleCategoryAddInput, ArticleCategoryEntity>();
            CreateMap<ArticleCategoryUpdateInput, ArticleCategoryEntity>();

            //查询
            CreateMap<ArticleCategoryEntity, ArticleCategoryGetOutput>();
            CreateMap<ArticleCategoryEntity, ArticleCategoryListOutput>();
        }
    }
}
